<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Grom Hellscream
 * Date: 11/2/12
 * Time: 11:33 AM
 * To change this template use File | Settings | File Templates.
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$document = JFactory::getDocument();

$chitiethocham = $this->get('chitiethocham');
$canbo = $this->get('canbo');
$phongs = $this->get('phong');
if (count($phongs) > 0) 
    $phong = $phongs[0];
elseif (count($phongs) == 1)
    $phong = $phongs;
$donvis = $this->get('donvi');
if (count($donvis) > 1)
    $donvi = $donvis[0];
elseif (count($donvis) == 1)
    $donvi = $donvis;
$khoi = $this->get('khoi');
?>

<div id="crumbs">
    <div style="color: #222222;font-weight: normal;margin: 0;padding: 0">
        <a href="<?php echo JRoute::_('index.php?option=com_vast&view=vast') ?>">Trang chủ</a> »
        <span>Cơ cấu tổ chức</span> »
        <?php if (isset($khoi)): ?>        
        <a href="<?php echo JRoute::_('index.php?option=com_vast&view=donvitructhuoc&id=' . $khoi->id); ?>"><?php echo $khoi->ten ?></a> »                
        <?php endif; ?>
        <?php if (isset($donvi)): ?>
        <a href="<?php echo JRoute::_('index.php?option=com_vast&view=phongtructhuocs&id=' . $donvi->id); ?>"><?php echo $donvi->ten ?></a> »
        <?php endif; ?>
        <?php if (isset($phong)): ?>
        <span><?php echo $phong->ten; ?></span> »        
        <?php endif; ?>
        <a href="<?php echo JRoute::_('index.php?option=com_vast&view=chitietcanbo&id=' . $canbo->id); ?>"><?php echo $canbo->hoten; ?></a> »
        <span>Xem chi tiết học hàm</span>
    </div>
</div>

<div id="main" class="home">
    <h3 class="title green">Tra cứu thông tin học hàm của cán bộ <?php echo $canbo->hoten; ?></h3>
    
    <div class="single">
        <p style="text-align:justify;text-justify:inter-word;">
            <strong style="text-indent: 20px;">
                + Chuyên ngành:
            </strong>
            <?php if (isset($chitiethocham->chuyennganh) && !is_null($chitiethocham->chuyennganh)) echo $chitiethocham->chuyennganh; ?>
        </p>
            
        <p style="text-align:justify;text-justify:inter-word;">
            <strong style="text-indent: 20px;">
                + Năm phong:
            </strong>
            <?php if (isset($chitiethocham->namphong) && !is_null($chitiethocham->namphong)) echo $chitiethocham->namphong; ?>
        </p>

        <p style="text-align:justify;text-justify:inter-word;">
            <strong style="text-indent: 20px;">
                + Tháng phong:
            </strong>
            <?php if (isset($chitiethocham->thangphong) && !is_null($chitiethocham->thangphong)) echo $chitiethocham->thangphong; ?>
        </p>

        <p style="text-align:justify;text-justify:inter-word;">
            <strong style="text-indent: 20px;">
                + Học hàm:
            </strong>
            <?php if (isset($chitiethocham->ten) && !is_null($chitiethocham->ten)) echo $chitiethocham->ten; ?>
        </p>
    </div>

    <div style="float: left; width: 680px;">
        <?php
        $url = htmlspecialchars($_SERVER['HTTP_REFERER']);
        echo '<a title="Quay lại" href="' . $url . '"><span style="left: 600px; position: relative;">&laquo; Quay lại</span></a>';
        ?>    
    </div>
    
</div>